//
//  UIViewController+CLExtension.h
//  CLExtension
//
//  Created by CharlieLiao on 2017/7/3.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ViewAppearStatus) {
    ViewLoad = 0,
    ViewDidLoad,
    ViewWillAppear,
    ViewDidAppear,
    ViewWillDisappear,
    ViewDidDisappear,
};

@interface UIViewController (CLExtension)

/// 自定义返回按钮
@property (nonatomic, class, readonly, nullable) UIImage *backBtnImg;
/// 启动右滑返回手势
@property (nonatomic, class, readonly) BOOL popGestureEnabled; //

///
@property (nonatomic, readonly) ViewAppearStatus  appearStatus;

/// 当前vc 执行viewWillAppear时候，执行selector方法(每个方法只会执行一次)
- (void)perform:(_Nonnull SEL)selector whenViewAppearStatus:(ViewAppearStatus)status;

@end
